package com.chtw.oasystem.service;

import com.chtw.oasystem.bean.Approve;
import com.chtw.oasystem.bean.Records;
import com.chtw.oasystem.respBean.ApproveFileRespBean;
import com.chtw.oasystem.respBean.FileRespBean;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

/**
 * @author chtw
 * @date 2020-11-14 23:15
 */
public interface FileUploadService {
    FileRespBean saveFile(HttpSession session, MultipartFile file) throws IOException;
    PageInfo<Records> list(HttpSession session, int page, int size, String search);
    List<Approve> getSelfApprove(String name);
    Approve getPeopleApprove(String name, int approveId);
    boolean delete(HttpSession session, int id);
    ApproveFileRespBean approveFile(HttpSession session, int id);
}
